<template>
	<view class="">
		<view class="d-flex a-stretch bg-white position-fixed left-0 bottom-0 right-0"
		style="height: 100rpx;z-index: 1000;">
			<view class="d-flex flex-column a-center j-center line-h"
			style="flex: 1;"
			hover-class="bg-light-secondary">
				<view class="iconfont icon-xihuan text-muted"></view>
				<text>收藏</text>
			</view>
			<view class="d-flex flex-column a-center j-center line-h"
			style="flex: 1;"
			hover-class="bg-light-secondary"
			@tap="toCartPage">
				<view class="iconfont icon-gouwuche text-muted"></view>
				<text>购物车</text>
			</view>
			<view class="d-flex a-center j-center font-md main-bg-color text-white"
			style="flex: 2.5;"
			hover-class="main-bg-hover-color"
			@tap="$emit('show')">
				<text>加入购物车</text>
			</view>
		</view>
		<view class="" style="height: 100rpx;"></view>
	</view>
</template>

<script>
	export default {
		methods: {
			toCartPage() {
				uni.switchTab({
					url: "../../pages/cart/cart"
				})
			}
		}
	}
</script>

<style>
</style>
